package com.sy.controller;

import com.sy.entity.ThumbsUp;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ThumbsUpController extends BaseController {
    @RequestMapping(value = "thumbsUps", method = RequestMethod.POST)
    public Integer addOrCancelLike(@RequestBody ThumbsUp thumbsUp) {
        return thumbsUpService.addOrCancelThumbsUp(thumbsUp);
    }
}
